import * as apiService from '@/services/api';

/**
 * 反馈列表api
 * @return {Promise<*>}
 */
const feedbackTypeListApi = (data) => {
  return apiService.post(api.FEEDBACK_TYPE_LIST,data);
};

/**
 * 添加反馈列表api
 * @return {Promise<*>}
 */
const feedbackTypeAddApi = (data) => {
  return apiService.post(api.FEEDBACK_TYPE_ADD,data);
};

/**
 * 修改反馈列表api
 * @return {Promise<*>}
 */
const feedbackTypeUpdateApi = (data) => {
  return apiService.post(api.FEEDBACK_TYPE_UPDATE,data);
};

/**
 * 删除反馈列表api
 * @return {Promise<*>}
 */
const feedbackTypeDeleteApi = (data) => {
  return apiService.post(api.FEEDBACK_TYPE_DELETE,data);
};

/**
 * 开关反馈列表api
 * @return {Promise<*>}
 */
const feedbackTypeSwitchApi = (data) => {
  return apiService.post(api.FEEDBACK_TYPE_SWITCH,data);
};

export {
  feedbackTypeListApi,
  feedbackTypeDeleteApi,
  feedbackTypeSwitchApi,
  feedbackTypeAddApi,
  feedbackTypeUpdateApi,
}
